import { stringify } from 'qs';
import request from '@/utils/request';

export async function List(params) {
  return request(`/bid/query`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function borrowList(params) {
  return request(`/bid/borrow/list/${params.code}`, {
    method: 'POST',
    body: {},
  });
}

export async function bidInfo(params) {
  return request(`/bid/info/${params.code}`, {
    method: 'POST',
    body: {},
  });
}

export async function bidAfter(params) {
  return request(`/bid/after/loan/${params.code}`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function deptQuery(params) {
  return request('/merchant/query', {
    method: 'POST',
    body: params,
  });
}

export async function clientDetail(params) {
  return request(`/banner/detail/${params.adminNo}`, {
    method: 'POST',
    body: {},
  });
}



export async function brandChange(params) {
  return request('/brand/sort/change', {
    method: 'POST',
    body: params,
  });
}

export async function brandList(params) {
  return request('/merchant/brand/list', {
    method: 'POST',
    body: {},
  });
}

export async function getCompany(params) {
  return request('/merchant/enterprise/list', {
    method: 'POST',
    body: {},
  });
}

export async function status(params) {
  return request('/banner/status/update', {
    method: 'POST',
    body: params,
  });
}
